Package jeresources.jei.dungeon
Class DungeonWrapper
java.lang.Object
jeresources.jei.dungeon.DungeonWrapper
- All Implemented Interfaces:
mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback,mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
public class DungeonWrapper
extends Object
implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension, mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintamountOfItems(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus) voiddrawInfo(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY) Draw additional info about the recipe.List<net.minecraft.world.item.ItemStack>getItems(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus, int slot, int slots) voidonTooltip(mezz.jei.api.gui.ingredient.IRecipeSlotView recipeSlotView, List<net.minecraft.network.chat.Component> tooltip) Change the tooltip for an ingredient.voidresetLid()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
getTooltipStrings, handleClick, handleInput, setIngredients
-
Field Details
-
chest
-
-
Constructor Details
-
DungeonWrapper
-
-
Method Details
-
amountOfItems
public int amountOfItems(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus) -
getItems
public List<net.minecraft.world.item.ItemStack> getItems(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus, int slot, int slots) -
drawInfo
public void drawInfo(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY) Description copied from interface:mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionDraw additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled byIRecipeCategoryExtension.getTooltipStrings(double, double)- Specified by:
drawInfoin interfacemezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionmouseX- the X position of the mouse, relative to the recipe.mouseY- the Y position of the mouse, relative to the recipe.- See Also:
-
for a simple class for drawing things.for useful functions.
-
onTooltip
public void onTooltip(mezz.jei.api.gui.ingredient.IRecipeSlotView recipeSlotView, List<net.minecraft.network.chat.Component> tooltip) Description copied from interface:mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallbackChange the tooltip for an ingredient.- Specified by:
onTooltipin interfacemezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
-
resetLid
public void resetLid()
-